package com.javacore.day10.adapter;

import java.util.ArrayList;
import java.util.List;

public class SortListAdapter implements Sorter {

	@Override
	public int[] sort(int[] numbers) {
		int[] sortedNumbers = null;
		// convert the array to a List
		List<Integer> numberList = new ArrayList<Integer>();

		// call the adapter
		NumberSorter sorter = new NumberSorter();
		numberList = sorter.sort(numberList);

		// convert the list back to an array and return

		return sortedNumbers;
	}

}